<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="renderer" content="webkit">
    <title>@yield('title')</title>
    <meta name="keywords" content="@yield('keywords')" >
    <meta name="description" content="@yield('description')">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="{{ elixir('css/admin.css') }}">
</head>
<body>
<article class="admin container-fluid">
    <div class="row">
        <aside class="admin-sidebar col-xl-2">
            <li class="system-name"><span class="iconfont">&#xe6cd;</span>企业系统</li>
            <li class="sidebar-link">
                <a href="/admin/product/list" title="产品管理">
                    <span class="iconfont">&#xe613;</span>产品管理
                </a>
            </li>
            <li class="sidebar-link">
                <a href="" title="新闻中心">
                    <span class="iconfont">&#xe621;</span>新闻中心
                </a>
            </li>
            <li class="sidebar-link">
                <a href="" title="设置中心">
                    <span class="iconfont">&#xe615;</span>设置中心
                </a>
            </li>
        </aside>
        <section class="admin-box col-xl-10">
            <div class="admin-search-user">
                <div class="search-user-box">
                    <div class="admin-search">
                        <input type="text" name="search-text" placeholder="功能搜索" />
                        <label for="search-button" class="iconfont">&#xe6ac;</label>
                        <input type="button" value="搜索" id="search-button" />
                    </div>
                    <div class="admin-user">
                        <img src="{{ $portrait }}" title="user_portrait" alt="user_portrait" />
                        <div >{{ $name }}<span class="iconfont">&#xe61c;</span></div>
                        <ul class="admin-user-drop-down" style="display: none;">
                            <li><a href="" title="">设置</a></li>
                            <li><a href="" title="">退出</a></li>
                        </ul>
                    </div>

                </div>
            </div>
            <div class="clearfix"></div>
            <div class="content">
                @yield('content')
            </div>
        </section>
    </div>
</article>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
<!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
<script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
<!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
<script>
    $(function(){
        $('.admin-user').hover(function(){
            $('.admin-user-drop-down').show();
        },function(){
            $('.admin-user-drop-down').hide();
        });
    });
</script>
@yield('js-code')
</body>
</html>